package lab02.test15;

public class Test15 {
    public static void main(String[] args) {
        Graduate zhangsan = new Graduate();
        zhangsan.name = "zhangsan";
        zhangsan.sex = "男";
        zhangsan.age = 19;
        System.out.println(zhangsan.toString());

        zhangsan.pay = 2000;
        zhangsan.fee = 5000;
        if(12*zhangsan.pay - 2*zhangsan.pay < 2000){
            System.out.println("You  need a loan!");
        }else {
            System.out.println("You income is enough！");
        }
    }
}
